package com.bawei.usergroup.model;


import com.bawei.mvvmcomm.mvvm.model.BaseModel;
import com.bawei.networkmoudle.ChangeFunction;
import com.bawei.networkmoudle.Entity.BaseEntity;
import com.bawei.networkmoudle.HttpFactory;
import com.bawei.networkmoudle.HttpType;
import com.bawei.usergroup.data.Api;

import java.util.Map;

import io.reactivex.Observable;

public class RegModel extends BaseModel {
    public Observable<BaseEntity>requestRegister(Map<String,Object>map){
        return HttpFactory.getInstance().factory(HttpType.TOKENSIGNTYPE)
                .getRetrofit().create(Api.class)
                .requestRegisterUser(createBody(map));
    }

}
